<?php

/**
 * AoiLeg form.
 *
 * @package    sf_sandbox
 * @subpackage form
 * @author     Your name here
 * @version    SVN: $Id: sfDoctrineFormTemplate.php 23810 2009-11-12 11:07:44Z Kris.Wallsmith $
 */
class AoiLegForm extends BaseAoiLegForm
{
  public function configure()
  {

    $custom_decorator = new sfWidgetFormSchemaFormatterAoi($this->getWidgetSchema());
    $this->widgetSchema->addFormFormatter('AoiFormatter', $custom_decorator);
    $this->widgetSchema->setFormFormatterName('AoiFormatter');

    $this->widgetSchema->setNameFormat('aoi_leg[%s]');
  }
}
